package com.proactive.webapp.entity;

import java.util.Date;

import org.springframework.web.multipart.MultipartFile;

import com.proactive.webapp.util.EncodeHtml;

public class Design {
	EncodeHtml encodeHtml = new EncodeHtml();
	private int id;
	private int categoryID;
	private String title;
	private String imagePath;
	private String content;
	private String demo;
	private String filePath;
	private String fileUrl;
	private int viewCount;
	private int isFile;
	private String writer;
	private String writerUrl;
	private int isWriter;
	private int isPractice;
	private String writerAccount;
	private int cid;//courseID
	private String account;
	private int status;
	private Date createDate;
	private Date updateDate;
	
	private String fileName;
	private Course course;
	private Member writerMember;
	private Member member;
	private String gist;
	private String tags;
	private MultipartFile image;
	private MultipartFile file;
	private int favoriteCount;
	private int commentCount;
	private String categoryName;
	private String downloadUrl;
	private String createDateString;
	private String updateDateString;
	private String categoryUrl;
	private boolean reportFlag;
	private boolean collectFlag;
	private boolean favoriteFlag;
	private boolean writerFlag;
	private boolean moreFlag;
	private String classString;
	private String moreString;
	private String moreUrl;
	private String reportClass;
	private String collectClass;
	private String favoriteClass;
	private String reportString1;
	private String reportString2;
	private String collectString;
	private String collectString1;
	private String collectString2;
	private String favoriteString1;
	private String favoriteString2;
	private String practiceClass;
	private String actString;
	private String actClass;
	private String hideClass;
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public int getCategoryID() {
		return categoryID;
	}
	public void setCategoryID(int categoryID) {
		this.categoryID = categoryID;
	}
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	public String getImagePath() {
		return imagePath;
	}
	public void setImagePath(String imagePath) {
		this.imagePath = imagePath;
	}
	public String getContent() {
		return content;
	}
	public void setContent(String content) {
		gist = encodeHtml.getGist(200, content);
		this.content = content;
	}
	public String getDemo() {
		return demo;
	}
	public void setDemo(String demo) {
		this.demo = demo;
	}
	public String getFilePath() {
		return filePath;
	}
	public void setFilePath(String filePath) {
		this.filePath = filePath;
	}
	public String getFileUrl() {
		return fileUrl;
	}
	public void setFileUrl(String fileUrl) {
		this.fileUrl = fileUrl;
	}
	public int getViewCount() {
		return viewCount;
	}
	public void setViewCount(int viewCount) {
		this.viewCount = viewCount;
	}
	public int getIsFile() {
		return isFile;
	}
	public void setIsFile(int isFile) {
		this.isFile = isFile;
	}
	public String getWriter() {
		return writer;
	}
	public void setWriter(String writer) {
		this.writer = writer;
	}
	public String getWriterUrl() {
		return writerUrl;
	}
	public void setWriterUrl(String writerUrl) {
		this.writerUrl = writerUrl;
	}
	public int getIsWriter() {
		return isWriter;
	}
	public void setIsWriter(int isWriter) {
		this.isWriter = isWriter;
	}
	public int getIsPractice() {
		return isPractice;
	}
	public void setIsPractice(int isPractice) {
		this.isPractice = isPractice;
	}
	public String getWriterAccount() {
		return writerAccount;
	}
	public void setWriterAccount(String writerAccount) {
		this.writerAccount = writerAccount;
	}
	public int getCid() {
		return cid;
	}
	public void setCid(int cid) {
		this.cid = cid;
	}
	public String getAccount() {
		return account;
	}
	public void setAccount(String account) {
		this.account = account;
	}
	public int getStatus() {
		return status;
	}
	public void setStatus(int status) {
		this.status = status;
	}
	public Date getCreateDate() {
		return createDate;
	}
	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}
	public Date getUpdateDate() {
		return updateDate;
	}
	public void setUpdateDate(Date updateDate) {
		this.updateDate = updateDate;
	}
	public String getGist() {
		return gist;
	}
	public void setGist(String gist) {
		this.gist = gist;
	}
	public String getTags() {
		return tags;
	}
	public void setTags(String tags) {
		this.tags = tags;
	}
	public MultipartFile getImage() {
		return image;
	}
	public void setImage(MultipartFile image) {
		this.image = image;
	}
	public MultipartFile getFile() {
		return file;
	}
	public void setFile(MultipartFile file) {
		this.file = file;
	}
	public int getFavoriteCount() {
		return favoriteCount;
	}
	public void setFavoriteCount(int favoriteCount) {
		this.favoriteCount = favoriteCount;
	}
	public int getCommentCount() {
		return commentCount;
	}
	public void setCommentCount(int commentCount) {
		this.commentCount = commentCount;
	}
	public String getCategoryName() {
		return categoryName;
	}
	public void setCategoryName(String categoryName) {
		this.categoryName = categoryName;
	}
	public String getDownloadUrl() {
		return downloadUrl;
	}
	public void setDownloadUrl(String downloadUrl) {
		this.downloadUrl = downloadUrl;
	}
	public String getCreateDateString() {
		return createDateString;
	}
	public void setCreateDateString(String createDateString) {
		this.createDateString = createDateString;
	}
	public String getUpdateDateString() {
		return updateDateString;
	}
	public void setUpdateDateString(String updateDateString) {
		this.updateDateString = updateDateString;
	}
	public String getCategoryUrl() {
		return categoryUrl;
	}
	public void setCategoryUrl(String categoryUrl) {
		this.categoryUrl = categoryUrl;
	}
	public boolean isReportFlag() {
		return reportFlag;
	}
	public void setReportFlag(boolean reportFlag) {
		this.reportFlag = reportFlag;
	}
	public boolean isCollectFlag() {
		return collectFlag;
	}
	public void setCollectFlag(boolean collectFlag) {
		this.collectFlag = collectFlag;
	}
	public boolean isFavoriteFlag() {
		return favoriteFlag;
	}
	public void setFavoriteFlag(boolean favoriteFlag) {
		this.favoriteFlag = favoriteFlag;
	}
	public boolean isWriterFlag() {
		return writerFlag;
	}
	public void setWriterFlag(boolean writerFlag) {
		this.writerFlag = writerFlag;
	}
	public boolean isMoreFlag() {
		return moreFlag;
	}
	public void setMoreFlag(boolean moreFlag) {
		this.moreFlag = moreFlag;
	}
	public String getClassString() {
		return classString;
	}
	public void setClassString(String classString) {
		this.classString = classString;
	}
	public String getMoreString() {
		return moreString;
	}
	public void setMoreString(String moreString) {
		this.moreString = moreString;
	}
	public String getMoreUrl() {
		return moreUrl;
	}
	public void setMoreUrl(String moreUrl) {
		this.moreUrl = moreUrl;
	}
	public String getReportClass() {
		return reportClass;
	}
	public void setReportClass(String reportClass) {
		this.reportClass = reportClass;
	}
	public String getCollectClass() {
		return collectClass;
	}
	public void setCollectClass(String collectClass) {
		this.collectClass = collectClass;
	}
	public String getFavoriteClass() {
		return favoriteClass;
	}
	public void setFavoriteClass(String favoriteClass) {
		this.favoriteClass = favoriteClass;
	}
	public String getReportString1() {
		return reportString1;
	}
	public void setReportString1(String reportString1) {
		this.reportString1 = reportString1;
	}
	public String getReportString2() {
		return reportString2;
	}
	public void setReportString2(String reportString2) {
		this.reportString2 = reportString2;
	}
	public String getCollectString() {
		return collectString;
	}
	public void setCollectString(String collectString) {
		this.collectString = collectString;
	}
	public String getCollectString1() {
		return collectString1;
	}
	public void setCollectString1(String collectString1) {
		this.collectString1 = collectString1;
	}
	public String getCollectString2() {
		return collectString2;
	}
	public void setCollectString2(String collectString2) {
		this.collectString2 = collectString2;
	}
	public String getFavoriteString1() {
		return favoriteString1;
	}
	public void setFavoriteString1(String favoriteString1) {
		this.favoriteString1 = favoriteString1;
	}
	public String getFavoriteString2() {
		return favoriteString2;
	}
	public void setFavoriteString2(String favoriteString2) {
		this.favoriteString2 = favoriteString2;
	}
	public Member getMember() {
		return member;
	}
	public void setMember(Member member) {
		this.member = member;
	}
	public String getPracticeClass() {
		return practiceClass;
	}
	public void setPracticeClass(String practiceClass) {
		this.practiceClass = practiceClass;
	}
	public Course getCourse() {
		return course;
	}
	public void setCourse(Course course) {
		this.course = course;
	}
	public Member getWriterMember() {
		return writerMember;
	}
	public void setWriterMember(Member writerMember) {
		this.writerMember = writerMember;
	}
	public String getFileName() {
		return fileName;
	}
	public void setFileName(String fileName) {
		this.fileName = fileName;
	}
	public EncodeHtml getEncodeHtml() {
		return encodeHtml;
	}
	public void setEncodeHtml(EncodeHtml encodeHtml) {
		this.encodeHtml = encodeHtml;
	}
	public String getActString() {
		return actString;
	}
	public void setActString(String actString) {
		this.actString = actString;
	}
	public String getActClass() {
		return actClass;
	}
	public void setActClass(String actClass) {
		this.actClass = actClass;
	}
	public String getHideClass() {
		return hideClass;
	}
	public void setHideClass(String hideClass) {
		this.hideClass = hideClass;
	}


}
